package com.imooc.springmvc2.annotation;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by joe on 16-8-11.
 */
public class MainTest {

    public static void main(String[] args){
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DemoConfig.class);
        DemoService demoService = context.getBean(DemoService.class);
        demoService.outputResult();
        context.close();
    }
}
